import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

//路由引入
import Business from "@/views/business/Business.vue"; //商家
import Commodity from "@/views/commodity/Commodity.vue"; //商品
import Evaluate from "@/views/evaluate/Evaluate.vue"; //评价

const routes = [
  { path: "/", redirect: "/commodity" },
  { path: "/commodity", component: Commodity },
  { path: "/business", component: Business },
  { path: "/evaluate", component: Evaluate },
];

const router = new VueRouter({
  routes,
});

export default router;
